left
详情
主题:C语言基础--循环打印输 返回 搜索
#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <malloc.h>
#include <stdarg.h>



int main(void)
{
  char c;
  while (1)
  {
    c = _getch();
    if ((int)c == 13) {
      printf("结束");
      break;
    }
    else {
      printf("%c\n",c);
    }
  }
}

警告:
您是否确定删除贴子?
确定 取消
copyright